{% extends "base.html" %}
{% load static %}

{% block extra_head %}
<link rel="stylesheet" href="{% static 'css/mp.css' %}">
{% endblock extra_head %}

{% block main %} {% if user.is_authenticated %}

<div class="w-75 h-100 ">
  <ul class="toc_list">
    <li><a href="#loc1">局域网(本地)联机</a>
    <li><a href="#loc2">跨公网联机(通过虚拟局域网)</a>
    <li><a href="#loc3">跨公网联机(不搭建虚拟局域网)</a>
  </ul>

  <section>
    <h3 id="location1"><strong>局域网(本地)联机</strong></h3>
    <pre>
    创建dw多人联机房间时，dw会自动检测本机所有网卡及其ip，创建房间成功后，核实下显示网卡名称、ip。
    本机的网卡名称默认一般是“本地连接1”，由于中文在游戏里面是乱码，可以重命名网卡。

        <img id="mp-01" src="/media/tutorial/mp-01.png" alt="" class="ms-4 " />
    如果显示网卡ip信息非局域网对应的网卡名称，需要手动编辑配置文件dangerouswaters.ini(在dw主目录下)，指定联机所用网卡。

        <img id="mp-03" src="/media/tutorial/mp-03.png" alt="" class="ms-4 " />

        <img id="mp-02" src="/media/tutorial/mp-02.png" alt="" class="ms-4 image_thermal_layer" />
    </pre>
  </section>

  <section>
    <h3 id="loc2"><strong>跨公网联机(通过虚拟局域网)</strong></h3>
    <pre>
    借助联网工具，组建虚拟局域网，进行跨公网联机。目前所用组网工具为Radmin VPN，（免费，安装后等待其自动注册完成）。

    dw会自动检测本机所有网卡及其ip，默认使用本地网卡。所以必须手动编辑配置文件dangerouswaters.ini(在dw主目录下)，以
    指定联机使用虚拟网卡。

        <img id="mp-01" src="/media/tutorial/mp-01.png" alt="" class="ms-4 " />

        <img id="mp-03" src="/media/tutorial/mp-03.png" alt="" class="ms-4 " />

    安装Radmin VPN后，等待自动注册、自动登录完成，然后加入我们的联机群组VFCN055，密码123456
        <img id="mp-04" src="/media/tutorial/mp-04.png" alt="" class="ms-4 " />

        <img id="mp-02" src="/media/tutorial/mp-02.png" alt="" class="ms-4 image_thermal_layer" />

    如何重新注册radman-VPN:
    if you are baned, how to re-register:
        If it is shown that you are blocked or banned it means that at some point there were two PCs with
        the same ID in Radmin VPN (most likely it was a clone of original machine). And because of our
        security measures  this ID was blocked. The only way to solve this issue is by re-registration.

        To do this, you need to go to register
          HKEY_LOCAL_MACHINE \ SOFTWARE \ Famatech \ RadminVPN \ 1.0 (for x86)
            Or
          HKEY_LOCAL_MACHINE \ SOFTWARE \ WOW6432Node \ Famatech \ RadminVPN \ 1.0 (for x64)
        Remove 'IPv4' 'IPv6' and 'RID' keys
        Change the 'Alias 'key to the desired computer name (can not exceed 32 characters).
        And restart service.
    </pre>
  </section>

  <section>
    <h3 id="loc3"><strong>跨公网联机(不搭建虚拟局域网)</strong></h3>
    <pre>
    此方式，需要一定的网络基础知识。
    核对自家宽带有公网ip，核对自家所用路由器有端口转发功能。
    开启udp port 2302 - 2400转发。
    之后就可以将自家公网ip告知对方，用来联机。
    </pre>
  </section>
</div>

{% else %} {% include "pcs_login.html" %} {% endif %} {% endblock %}
